Exercises for Genetic Algorithm for TSP
- Ex 1. Fitness evaluation
- Ex 1.1 Tour length
- Ex 1.2 Fitness ratio
- Ex 2. Selection
- Ex 3. Crossover
- Ex 4. Mutation
- Exercise 1.1 - Tour Length: Let's get the total traveling distance.
- Exercise 1.2 - Fitness Evaluation: Let's compute the fitness values.
This exercise should be done after Exercise 1.
- Exercise 2 - Selection: Let's select a tour using the Roulette wheel selection.
This exercise should be done after Exercise 1.
- Exercise 3 - Crossover: Let's apply crossover.
This exercise should be done after Exercise 2.
- Exercise 4 - Mutation: Let's mutate the new offsprings.
This exercise should be done after Exercise 3.